﻿using S7Client.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S7Client.Model
{
    public class ConfigModel : NotifyBase
    {
        private string ip;

        public string Ip
        {
            get { return ip; }
            set
            {
                ip = value;
                this.NotifyChanged();
            }
        }

        private string _plcType;

        public string PlcType
        {
            get { return _plcType; }
            set { _plcType = value; this.NotifyChanged(); }
        }

        private int _rack;

        public int Rack
        {
            get { return _rack; }
            set { _rack = value; this.NotifyChanged(); }
        }

        private int _slot;

        public int Slot
        {
            get { return _slot; }
            set { _slot = value; this.NotifyChanged(); }
        }

        private string _dataType;

        public string DataType
        {
            get { return _dataType; }
            set { _dataType = value; this.NotifyChanged(); }
        }

        private String _dbArea;

        public String DBArea
        {
            get { return _dbArea; }
            set { _dbArea = value; this.NotifyChanged(); }
        }

        private string _byteAdr;

        public string ByteAdr
        {
            get { return _byteAdr; }
            set { _byteAdr = value; this.NotifyChanged(); }
        }


        private string _writeDataType;

        public string WriteDataType
        {
            get { return _writeDataType; }
            set { _writeDataType = value; this.NotifyChanged(); }
        }

        private int _varCount;

        public int VarCount
        {
            get { return _varCount; }
            set { _varCount = value; this.NotifyChanged(); }
        }

        private String _bitAdr;

        public String BitAdr 
        {
            get { return _bitAdr; }
            set { _bitAdr = value; this.NotifyChanged(); }
        }


        private string _value;

        public string Value
        {
            get { return _value; }
            set { _value = value; this.NotifyChanged(); }
        }


    }
}
